<div class='top'>
	<h1>Mi Horario</h1>
	<%= display_menu %>
</div>
<div class='body'>
	<table class='list'>
	  <tr>
	  <% for column in ["Días", "Horas"] %>
	    <th><%= column %></th>
	  <% end %>
	  </tr>

	<% for rule in @time_window %>
	  <tr>
	    <td><%=h rule[:days].split(' ').join(', ') %></td>
	    <td><%=h rule[:hours] %></td>
	    <td>
		    <%= link_to image_tag("delete.png", :size => "30x30", :border => 0, :title => "borrar"),
		 			{ :action => 'delete_regla', :rule => rule },
		 			:confirm => 'Estás seguro de querer borrar la regla?',
		 			:method => :post %>
			<%= link_to image_tag("edit.png", :size => "30x30", :border => 0, :title => "editar"),
				 	{ :action => 'edit_regla', :rule => rule },
				 	:method => :post %>
	    </td>
	  </tr>
	<% end %>
	</table>

	<%= link_to image_tag("add.png", :size => "40x40", :border => 0), :action => 'new_regla' %>

	<p class='notice'><%= flash[:notice] %></p>
</div>